<?php
class admin_core_Users extends Engine_Core
{
	/**
	 * @var admin_core_Users
	 */
	protected static $_instance;

	/**
	 * @var admin_core_Users_Adapter
	 */
	protected $_adapter;

	/**
	 * @static
	 * @return admin_core_Users
	 */
	public static function getInstance()
	{
		if (empty(self::$_instance)){
			self::$_instance = new self;
		}

		return self::$_instance;
	}

	/**
	 * @return admin_core_Users_Adapter
	 */
	public function getAdapter()
	{
		return parent::getAdapter();
	}

	/**
	 * @param  $password
	 * @param null $id
	 * @return bool
	 */
	public function passwordValid($password, $id = null)
	{
		return $this->getAdapter()->passwordValid($password, $id);
	}
}